//定义分类相关接口
import request from '@/utills/request'
//获取首页模块所有分类（顶级，二级，商品分类）
export const findAllCategory = () => {
    return request('/home/category/head', 'get')
}
// 商品分类---顶级类目
export const findTopCategory = (id) => {
    return request('/category', 'get', {id})
}
// 二级分类，筛选区数据
export const findSubCategoryFilter  = (id) => {
    return request('/category/sub/filter', 'get', {id})
}
//获取分类下的商品
export const findSubCategoryGoods = (params) => {
    return request('/category/goods/temporary', 'post', params)
  }
  